//
//  YPInvestDetailSectionThreeView.m
//  ChengHuiTong
//
//  Created by KiVen on 15/11/29.
//  Copyright © 2015年 张文权. All rights reserved.
//

#import "YPInvestDetailSectionThreeView.h"

@implementation YPInvestDetailSectionThreeView

- (id)initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    
    if (self) {
        
        self.backgroundColor = UIColorFromRGB(0xF9F9F9);
        
        _platformTimeLabel = [UILabel creatWithFrame:CGRectMake(0, 5, self.width, 20)
                                                font:[UIFont systemFontOfSize:11]
                                                text:@""
                                           textColor:[UIColor blackColor]
                                       textAlignment:1];
        [self addSubview:_platformTimeLabel];


        _timeWarnImageView = [[UIImageView alloc]initWithFrame:CGRectMake(80,_platformTimeLabel.bottom + (20-15)/2, 15, 15)];
        _timeWarnImageView.image = [UIImage imageNamed:@"timer"];
        [self addSubview:_timeWarnImageView];
        
        //剩余时间
        _surplusTimeLabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(_timeWarnImageView.frame), _platformTimeLabel.bottom, 70, 20)];
        _surplusTimeLabel.text = @"【剩余时间】";
        _surplusTimeLabel.font = [UIFont systemFontOfSize:11];
        [self addSubview:_surplusTimeLabel];
        
        _timeLabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(_surplusTimeLabel.frame),_surplusTimeLabel.top, 200, 20)];
        _timeLabel.text = @"1天6小时8分钟41秒";
        _timeLabel.textColor = kColor_AppNavColor;
        _timeLabel.font = [UIFont systemFontOfSize:11];
        [self addSubview:_timeLabel];
        
        _reviewLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, _platformTimeLabel.bottom, SCREEN_WIDTH, 20)];
        _reviewLabel.font = [UIFont systemFontOfSize:11];
        _reviewLabel.textAlignment = NSTextAlignmentCenter;
        [self addSubview:_reviewLabel];
        
        [self addLineWithFrame:CGRectMake(0, self.height-0.5, self.width, 0.5) color:UIColorFromRGB(0xE2E2E2)];

    }
    
    return self;
    
    
}

- (void)drawRect:(CGRect)rect {


}


@end
